package com.jk.controller;

import com.jk.dto.TbClass;
import com.jk.interfaces.TbClassServiceApi;
import com.jk.pojo.PagedResponse;
import com.jk.service.TbClassService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author yzf
 * @version 1.0
 * @description: TODO
 * @date 2024/12/12 16:16
 */
@RestController
public class TbClassController implements TbClassServiceApi {
    @Autowired
    private TbClassService tbClassService;
    @Override
    public PagedResponse<TbClass> findTbClassList(TbClass tbClass, Integer pageNum, Integer pageSize) {
        return tbClassService.findTbClassList(tbClass, pageNum, pageSize);
    }

    @Override
    public void delTbClassById(Integer id) {
        tbClassService.delTbClassById(id);
    }

    @Override
    public void addTbClass(TbClass tbClass) {
        tbClassService.addTbClass(tbClass);
    }

    @Override
    public TbClass getTbClassById(Integer id) {
        return tbClassService.getTbClassById(id);
    }

    @Override
    public void upTbClass(TbClass tbClass) {
        tbClassService.upTbClass(tbClass);
    }
}
